#!/bin/bash
#

nginx_process_num=$(ps -ef | grep mysqld | grep -v grep | wc -l)

echo "mysqld有  "$nginx_process_num "个进程"

if [ $nginx_process_num -eq 0 ];then
	sudo service mysqld start
fi
